-
-
Notifications
You must be signed in to change notification settings - Fork 470
Add model streaming functions #3611
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Dutchman101
merged 7 commits into
multitheftauto:master
from
TheNormalnij:TheNormalnij/requestStreaming
Aug 14, 2024
Merged
Add model streaming functions #3611
Dutchman101
merged 7 commits into
multitheftauto:master
from
TheNormalnij:TheNormalnij/requestStreaming
Aug 14, 2024
+258
−3
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Can you explain for noobs what addReference and isBlocking arguments are for? Also, for #3266 couldn't these functions be called automatically, leaving this responsibility to MTA and not the developer? Would this be problematic? |
'addReference' increases models references counter to keep the model in
memory.
'blocking' loads the model from storage immediately.
In #3266 these functions don't increase references count. This will cause
huge fps drops when streaming memory is almost full. Gta unloads models
without references and dxDrawModel3D request models every frame.
dxDrawModel3D can't guarantee that a model will be rendered in the next
frame without a blocking argument. This argument is dangerous (causes slow
IO operations) and should not be used in render.
For me 'engineStreamingReleaseModel' is more interesting. With this
function you can link files in IMG and unload only one model.
вс, 28 июл. 2024 г., 01:54 Fernando Rocha ***@***.***>:
… Can you explain for noobs what addReference and is blocking arguments are
for?
Also, for #3266 <#3266>
couldn't these functions be called automatically, leaving this
responsibility to MTA and not the developer? Would this be problematic?
—
Reply to this email directly, view it on GitHub
<#3611 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABTVV5KY7FDUDKRDFSTJMGTZOQQKJAVCNFSM6AAAAABLSGIIGCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENJUGI3TIOJQGY>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
FileEX
suggested changes
Jul 31, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
For #3266